/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author dvasquez
 */
@Entity
@Table(name = "hilo")
@NamedQueries({@NamedQuery(name = "Hilo.findAll", query = "SELECT h FROM Hilo h"), @NamedQuery(name = "Hilo.findById", query = "SELECT h FROM Hilo h WHERE h.id = :id"), @NamedQuery(name = "Hilo.findByCodigoEquipo", query = "SELECT h FROM Hilo h WHERE h.codigoEquipo = :codigoEquipo"), @NamedQuery(name = "Hilo.findByTramoTotal", query = "SELECT h FROM Hilo h WHERE h.tramoTotal = :tramoTotal"), @NamedQuery(name = "Hilo.findByCalle", query = "SELECT h FROM Hilo h WHERE h.calle = :calle"), @NamedQuery(name = "Hilo.findByFaja", query = "SELECT h FROM Hilo h WHERE h.faja = :faja"), @NamedQuery(name = "Hilo.findByCapaControlada", query = "SELECT h FROM Hilo h WHERE h.capaControlada = :capaControlada"), @NamedQuery(name = "Hilo.findByAnchoFaja", query = "SELECT h FROM Hilo h WHERE h.anchoFaja = :anchoFaja")})
public class Hilo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID")
    private Integer id;
    @Column(name = "codigoEquipo")
    private String codigoEquipo;
    @Column(name = "tramoTotal")
    private String tramoTotal;
    @Column(name = "calle")
    private String calle;
    @Column(name = "faja")
    private String faja;
    @Column(name = "capaControlada")
    private String capaControlada;
    @Column(name = "anchoFaja")
    private Integer anchoFaja;

    public Hilo() {
    }

    public Hilo(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCodigoEquipo() {
        return codigoEquipo;
    }

    public void setCodigoEquipo(String codigoEquipo) {
        this.codigoEquipo = codigoEquipo;
    }

    public String getTramoTotal() {
        return tramoTotal;
    }

    public void setTramoTotal(String tramoTotal) {
        this.tramoTotal = tramoTotal;
    }

    public String getCalle() {
        return calle;
    }

    public void setCalle(String calle) {
        this.calle = calle;
    }

    public String getFaja() {
        return faja;
    }

    public void setFaja(String faja) {
        this.faja = faja;
    }

    public String getCapaControlada() {
        return capaControlada;
    }

    public void setCapaControlada(String capaControlada) {
        this.capaControlada = capaControlada;
    }

    public Integer getAnchoFaja() {
        return anchoFaja;
    }

    public void setAnchoFaja(Integer anchoFaja) {
        this.anchoFaja = anchoFaja;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Hilo)) {
            return false;
        }
        Hilo other = (Hilo) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entidades.Hilo[id=" + id + "]";
    }

}
